const template = require('art-template');
const path = require('path');

const views = path.join(__dirname, 'views', '条件判断.art');

const html = template(views, {
    name: '张三',
    age: 17
});

console.log(html);